<template>
  <svg class="svgs" aria-hidden="true" :style="styles">
    <use :xlink:href="'#'+type" />
  </svg>
</template>

<script>
export default {
  name: 'Icons',
  props: {
    type: {
      type: String,
      required: true
    },
    size: {
      type: Number,
      default: 16
    }
  },
  computed: {
    styles() {
      return {
        width: `${this.size}px`,
        height: `${this.size}px`
      };
    }
  }
};
</script>

<style>
.svgs {
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
</style>
